home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / Bowers Development / AppMaker 2.1.sit / AppMaker 2.1 / Examples / PowerPlant / Gadgets / CSliders.h / CSliders.h
Encoding:
Text File  |  1997-07-02  |  1.2 KB  |  57 lines  |  [TEXT/CWIE]

  1. // CSliders.h -- window class
  2. // Created 7/2/97 3:56 PM by AppMaker
  3.  
  4. #pragma once
  5.  
  6. #include <LWindow.h>
  7. #include <LListener.h>
  8.  
  9. class    CGadgetsData;
  10. class    LStream;
  11.  
  12. class    LStdControl;
  13.  
  14. //----------
  15. class    CSliders :    public LWindow,
  16.                         public LListener {
  17. public:    // static
  18.     static    CSliders*    CreateSliders        (LCommander*        inSuperCommander,
  19.                                                      CGadgetsData*    inData);
  20.  
  21. public:
  22.     enum { class_ID = 'Slis' };
  23.  
  24.                         CSliders        (LStream*    inStream);
  25.     virtual                ~CSliders();
  26.  
  27.     virtual void        ListenToMessage        (MessageT    inMessage,
  28.                                              void        *ioParam);
  29.  
  30.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  31.                                              void        *ioParam = nil);
  32.     virtual void        FindCommandStatus    (CommandT    inCommand,
  33.                                              Boolean    &outEnabled,
  34.                                              Boolean    &outUsesMark,
  35.                                              Char16        &outMark,
  36.                                              Str255        outName);
  37.  
  38. protected:
  39.     static    void        RegisterClass();
  40.     virtual void        FinishCreateSelf();
  41.     virtual void        ConnectToData    (CGadgetsData*    inData);
  42.  
  43.  
  44. protected:
  45.     static Boolean        sIsRegistered;
  46.  
  47.     CGadgetsData*    mData;
  48.  
  49. // Panes in this window:
  50.     LStdControl*        mVerticalScroll;
  51.     LStdControl*        mSliderScroll;
  52.     LStdControl*        mSpinnerScroll;
  53.     LStdControl*        mHorizontalScroll;
  54.     LStdControl*        mPictSliderScroll;
  55.  
  56. };
  57.